Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add otelcol.processor.groupbyattrs component #1300

Merged
merged 19 commits into from
Aug 27, 2024

Conversation

kehindesalaam
Copy link
Contributor

@kehindesalaam kehindesalaam commented Jul 15, 2024

PR Description

Adds the otelcol.processor.groupbyattrs component which allows grouping of metrics matching specific attributes.

Which issue(s) this PR fixes

Fixes #224

Notes to the Reviewer

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
  • Config converters updated

@CLAassistant
Copy link

CLAassistant commented Jul 15, 2024

CLA assistant check
All committers have signed the CLA.

@clayton-cornell clayton-cornell requested a review from a team July 15, 2024 22:36
@clayton-cornell
Copy link
Contributor

@grafana/grafana-alloy-maintainers Can we do a code review before I review the doc?

Copy link
Contributor

@wildum wildum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution! I left a few comments. Let me know when this is ready for a second review :)

@wildum
Copy link
Contributor

wildum commented Jul 16, 2024

You will also need to add a config converter for the component. You can follow the pattern used for the other otel components in https://github.com/grafana/alloy/tree/main/internal/converter/internal/otelcolconvert

Copy link
Contributor

@clayton-cornell clayton-cornell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some doc suggestions

kehindesalaam and others added 4 commits July 31, 2024 22:01
Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
# Conflicts:
#	CHANGELOG.md
#	go.mod
#	go.sum
@kehindesalaam
Copy link
Contributor Author

@wildum could you please take another look?

Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
Copy link
Contributor

@wildum wildum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the code looks good to me, I just have some little feedback on the doc. I found that the examples in the original doc were helpful to understand how the processor work. Should we add some examples or is it already clear enough? @ptodev I think you also wanted to give some feedback on this PR?

kehindesalaam and others added 3 commits August 15, 2024 21:53
…rs.alloy

Co-authored-by: Paulin Todev <paulin.todev@gmail.com>
…nto otelcol-processor-groupbyattr

# Conflicts:
#	docs/sources/reference/components/otelcol/otelcol.processor.groupbyattrs.md
#	internal/converter/internal/otelcolconvert/testdata/groupbyattrs.alloy
@kehindesalaam
Copy link
Contributor Author

Thanks for the review team. I'm sorry the second set of changes came a bit later. I have been busy.

Copy link
Contributor

@ptodev ptodev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @kehindesalaam! When @clayton-cornell approves it and when the CI is green, I'm happy for the PR to be merged!

kehindesalaam and others added 3 commits August 19, 2024 19:26
Copy link
Contributor

@ptodev ptodev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Looks good to me. 🚢 I just pushed a commit on your branch with a few minor docs fixes. By the way, you can visualise the docs in a browser by running these commands:

cd docs
make docs

I find this very useful when I want to make sure everything gets rendered appropriately.

@clayton-cornell clayton-cornell added the type/docs Docs Squad label across all Grafana Labs repos label Aug 26, 2024
Copy link
Contributor

@clayton-cornell clayton-cornell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doc are ok

@ptodev ptodev merged commit de79265 into grafana:main Aug 27, 2024
16 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age type/docs Docs Squad label across all Grafana Labs repos
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add otelcol.processor.groupbyattrs component
6 participants